const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  productionSourceMap: false,
  publicPath: './',
  devServer: {
    open: true,
    host: '0.0.0.0',
    proxy: {
      [process.env.VUE_APP_URL]: {
        target: process.env.VUE_APP_BASE_API
      }
      // '/baidu': {
      //   target: 'https://aip.baidubce.com/oauth/2.0/token',
      //   pathRewrite: {
      //     '^/baidu': ''
      //   }
      // }
    }
  }
})
